<template>
  <Header :activeIndex="path"></Header>
  <div style=padding-bottom:10px;”></div>
  <router-view></router-view>
</template>

<script>
import Header from '@/components/header'
export default {
  name: 'App',
  components:{
    Header
  },
  data() {
    return {
      path: ""
    }
  },
  watch:{
    $route(to) {
      console.log(to)
      this.path = to.path
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
